package com.silverbox.shopper.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.PayChannel;

public interface PayChannelMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PayChannel record);

    int insertSelective(PayChannel record);

    PayChannel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PayChannel record);

    int updateByPrimaryKey(PayChannel record);

    /**
     * 查询是否开通蚂蚁支付
     * @param storeId
     * @return
     */
	List<PayChannel> getAntPayModelByStoreId(Integer storeId);
	
	/**
	 * 查询店铺支付方式
	 * @param payType
	 * @param storeId
	 * @param shopperId
	 * @return
	 */
	List<PayChannel> findShopPayChannel(@Param("payType")Integer payType, @Param("storeId")Integer storeId, @Param("shopperId")Integer shopperId);
}